@extends('layouts.default')

@section('title', '任教学科')

@push('scripts')
<script src="{{ asset('lib/xm-select-v1.2.4/xm-select.js')}}"></script>
<script>
    checkboxdata = '';
    layui.use(['layer','form','table','laytpl','laydate','element','laypage','upload'], function(){
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var laytpl = layui.laytpl;
        var laydate = layui.laydate;
        var element = layui.element;
        var laypage = layui.laypage;
        var upload = layui.upload;
        var xmDemo;
        var job_apply_id = "{{request()->get('job_apply_id',0)}}";
        var job_id = "{{request()->get('job_id',0)}}"; //job_id
        var scale_id = "{{request()->get('scale_id',0)}}";
        var pj_score = "{{request()->get('pj_score',0)}}";
        var user_id = "{{request()->get('user_id',0)}}"; //申报人userid
        var lay_tid = $("#tab-t").children('.layui-this').attr('lay-id');
        var lay_pid = $("#tab-1").children('.layui-this').attr('lay-id');
        var lay_id = $("#tab-2").children('.layui-this').attr('lay-id');
        

        laydate.render({
            elem: '#begin_date'
        });

        laydate.render({
            elem: '#end_date'
        });

        laydate.render({
            elem: '#created_at'
        });

        renderSelect(function(){
            if(job_id != 0){
                getJobApplyCheckFirst({'job_apply_id':job_apply_id},function(res){
                    if(res.code == 1){
                        form.val("formTest", {                    
                            'data_version_name': res.data.data_version_name,
                            'name': res.data.name,
                            'join_job_date': res.data.join_job_date.length>0?res.data.join_job_date.slice(0,10):'',
                            'old_level_name': res.data.old_level_name,
                            'engage_date': res.data.engage_date.length>0?res.data.engage_date.slice(0,10):'',
                            'apply_level_name': res.data.apply_level_name,
                            'subject': res.data.subject,
                            'job_id': res.data.job_id,
                            'data_version_id': res.data.data_version_id,
                            'old_level': res.data.old_level,
                            'apply_level': res.data.apply_level,
                            'user_id': res.data.user_id,
                            'education': res.data.education,
                            'education_name': res.data.education_name,
                            'teaching_age': res.data.teaching_age,
                            'engage_age': res.data.engage_age,
                            'id': res.data.id,
                            'zf':pj_score  
                        });
                      
                        var getTpl = demo.innerHTML
                            ,view = document.getElementById('kpxzcc');
                            laytpl(getTpl).render(res.data.jobs, function(html){
                            view.innerHTML = html; 
                            $('#kpxzcc').find('span:first').addClass('kpxzcc-this');                            
                        }); 
                        
                        $('#tab-t').find('.layui-this').click();

                        //渲染默认选中审核小组成员的总分
                        let p_user_id = $('#kpxzcc').find('.kpxzcc-this').attr('user-id'); 
                        getUserCheckScores({'job_apply_id':job_apply_id,'p_user_id':p_user_id},function(res){
                            if(res.code == 1){
                                $('#check-zs').text(res.data);
                            }
                        })
                                            
                    }else{
                        layer.msg(res.msg, {icon: 5,shift : 6,time: 3000},function(){
                            window.history.back();
                        });
                    }
                })
            }
        });

        //下拉框初始化
        async function renderSelect(callback){       
            callback();
        } 
        
        //Tabt 切换
        element.on('tab(docDemoTabBriefTop)', function(){
             lay_tid = this.getAttribute('lay-id');
             if(lay_tid == 1){
                //最终认定
                $('.khxzcc-div').hide();
                if(lay_pid == 1){
                    //申报理由
                    get_final_job_apply_list({'job_apply_id':job_apply_id});
                }else{
                    //发展性项目
                    get_finat_job_scale_list({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id});
                }            
             }else{
                //考核小组
                $('.khxzcc-div').show();
                let p_user_id = $('#kpxzcc').find('.kpxzcc-this').attr('user-id'); 
                if(lay_pid == 1){
                    //申报理由
                    get_job_apply_user_check({'job_apply_id':job_apply_id,'p_user_id':p_user_id});
                }else{   
                    //发展性项目            
                    get_job_scale_user_check({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id,'p_user_id':p_user_id});
                }
             }
        });

        // Tab1 切换
        element.on('tab(docDemoTabBrief)', function(){
             lay_pid = this.getAttribute('lay-id');
             if(lay_tid == 1){
                //最终认定
                if(lay_pid == 1){
                    //申报理由
                    get_final_job_apply_list({'job_apply_id':job_apply_id});
                }else{
                    //发展性项目
                    get_finat_job_scale_list({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id});
                }
             }else{
                //考核小组
                let p_user_id = $('#kpxzcc').find('.kpxzcc-this').attr('user-id'); 
                if(lay_pid == 1){
                    //申报理由
                    get_job_apply_user_check({'job_apply_id':job_apply_id,'p_user_id':p_user_id});
                }else{
                    //发展性项目
                    get_job_scale_user_check({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id,'p_user_id':p_user_id});
                }
             }
          
        });

        // Tab2 切换
        element.on('tab(docDemoTabBrief2)', function(){
            lay_id = this.getAttribute('lay-id');   
            if(lay_tid == 1){
                //最终认定发展性项目
                get_finat_job_scale_list({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id});
            }else{
                //考核小组发展性项目
                let p_user_id = $('#kpxzcc').find('.kpxzcc-this').attr('user-id'); 
                get_job_scale_user_check({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id,'p_user_id':p_user_id});
            }      
                        
        });

        //渲染最终认定申报理由
        function get_final_job_apply_list(param){
            getFinalJobApplyList(param,function(res){
                if(res.code = 1){
                    $('#textarea').html(res.data.remark);
                    form.val("formTest2", {                               
                    'training': res.data.training,                                       
                    'scores[1]': res.data.job_apply_details[1].scores, 
                    'scores[2]': res.data.job_apply_details[2].scores, 
                    'scores[3]': res.data.job_apply_details[3].scores, 
                    'scores[4]': res.data.job_apply_details[4].scores, 
                    'comment[1]': res.data.job_apply_details[1].comment, 
                    'comment[2]': res.data.job_apply_details[2].comment, 
                    'comment[3]': res.data.job_apply_details[3].comment, 
                    'comment[4]': res.data.job_apply_details[4].comment, 
                    });

                    $('#xlsp').text(res.data.education_name);
                    $('#jl').text(res.data.teaching_age+'年');
                    $('#prnx').text(res.data.engage_age+'年');
                }              
            })
        }

        //渲染考核小组申报理由
        function get_job_apply_user_check(param){
            getJobApplyUserCheck(param,function(res){
                if(res.code = 1){
                    $('#textarea').html(res.data.remark);
                    form.val("formTest2", {                               
                    'training': res.data.training,                                       
                    'scores[1]': res.data.job_apply_details[1].scores, 
                    'scores[2]': res.data.job_apply_details[2].scores, 
                    'scores[3]': res.data.job_apply_details[3].scores, 
                    'scores[4]': res.data.job_apply_details[4].scores, 
                    'comment[1]': res.data.job_apply_details[1].comment, 
                    'comment[2]': res.data.job_apply_details[2].comment, 
                    'comment[3]': res.data.job_apply_details[3].comment, 
                    'comment[4]': res.data.job_apply_details[4].comment, 
                    });

                    $('#xlsp').text(res.data.education_name);
                    $('#jl').text(res.data.teaching_age+'年');
                    $('#prnx').text(res.data.engage_age+'年');
                } 
            })
        }
        

        //渲染最终认定发展性项目
        function get_finat_job_scale_list(param){
            getFinatJobScaleList(param,function(res){
                if(res.code == 1){
                    if(lay_id == 1){
                        //获奖情况
                        var getTpl = tab2_1.innerHTML
                        ,view = document.getElementById('view-tab2-1');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 2){
                        //科教研
                        var getTpl = tab2_2.innerHTML
                        ,view = document.getElementById('view-tab2-2');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 4){
                        //兼职工作
                        var getTpl = tab2_4.innerHTML
                        ,view = document.getElementById('view-tab2-4');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 5){
                        //公开教学
                        var getTpl = tab2_5.innerHTML
                        ,view = document.getElementById('view-tab2-5');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 6){
                        //辅导学生获奖
                        var getTpl = tab2_6.innerHTML
                        ,view = document.getElementById('view-tab2-6');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 7){
                        //带教情况
                        var getTpl = tab2_7.innerHTML
                        ,view = document.getElementById('view-tab2-7');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 8){
                        //其他发展项目
                        var getTpl = tab2_8.innerHTML
                        ,view = document.getElementById('view-tab2-8');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 9){
                        //重要工作贡献
                        var getTpl = tab2_9.innerHTML
                        ,view = document.getElementById('view-tab2-9');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }
                } 
            })
        }

        //渲染考核小组发展性项目
        function get_job_scale_user_check(param){
            getJobScaleCheckList(param,function(res){
                if(res.code == 1){
                    if(lay_id == 1){
                        //获奖情况
                        var getTpl = tab2_1.innerHTML
                        ,view = document.getElementById('view-tab2-1');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 2){
                        //科教研
                        var getTpl = tab2_2.innerHTML
                        ,view = document.getElementById('view-tab2-2');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 4){
                        //兼职工作
                        var getTpl = tab2_4.innerHTML
                        ,view = document.getElementById('view-tab2-4');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 5){
                        //公开教学
                        var getTpl = tab2_5.innerHTML
                        ,view = document.getElementById('view-tab2-5');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 6){
                        //辅导学生获奖
                        var getTpl = tab2_6.innerHTML
                        ,view = document.getElementById('view-tab2-6');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 7){
                        //带教情况
                        var getTpl = tab2_7.innerHTML
                        ,view = document.getElementById('view-tab2-7');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 8){
                        //其他发展项目
                        var getTpl = tab2_8.innerHTML
                        ,view = document.getElementById('view-tab2-8');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }else if(lay_id == 9){
                        //重要工作贡献
                        var getTpl = tab2_9.innerHTML
                        ,view = document.getElementById('view-tab2-9');
                        laytpl(getTpl).render(res.data, function(html){
                        view.innerHTML = html;
                        });
                    }
                }              
            })
        }

      

        //发展性项目查看
        $(document).on('click','.see-data',function(){
            let id = $(this).attr('jad-id');
            //console.log(lay_id);       
            switch(lay_id){
                case '1':
                    var url = "{{route('awards.wards.see')}}?id="+id+'&hide=1';
                    break;
                case '2':
                    var scale_index = $(this).attr('scale-index');
                    if(scale_index == 2){
                        var url = "{{route('study.infoView')}}?id="+id+'&hide=1';
                    }else if(scale_index == 3){
                        let lx = $(this).attr('lx');
                        //console.log(lx);return  false;
                        if(lx == 128){
                            var url = "{{route('paper.infoView')}}?id="+id+'&hide=1';
                        }else if(lx == 129){                         
                            var url = "{{route('treatise.infoView')}}?id="+id+'&hide=1';
                        }
                    }
                    break;
                case '4':
                    var url = "{{route('headmaster.infoView')}}?id="+id+'&hide=1';
                    break;
                case '5':
                    var scale_index = $(this).attr('scale-index');
                    if(scale_index == 5){
                        var url = "{{route('open.infoView')}}?id="+id+'&hide=1';
                    }else if(scale_index == 10){
                        var url = "{{route('experience.infoView')}}?id="+id+'&hide=1';
                    }
                    break;
                case '6':
                    var url = "{{route('awards.wards.see')}}?id="+id+'&hide=1';
                    break;
                case '7':
                    var url = "{{route('work.work.see')}}?id="+id+'&hide=1';
                    break;
                case '8':
                    var url = "{{route('awards.wards.see')}}?id="+id+'&hide=1';
                    break;
                case '9':
                   let type = $(this).attr('type');
                   if(type == 1){
                        var url = "{{route('work.work.see')}}?id="+id+'&hide=1';
                   }else if(type == 2){
                        var url = "{{route('work.inwork.see')}}?id="+id+'&hide=1';
                   }else if(type == 3){
                        var url = "{{route('work.outwork.see')}}?id="+id+'&hide=1';
                   }
                    break;
                default:
                
            }
            layer.open({
                title :'查看',
                type: 2, 
                content: url ,
                area: ['1400px', '800px'],
                btn: ['取消'],
                btnAlign: 'c',
            }); 

        })

   
        $(document).on('click','.kpcc',function(){
            $(this).addClass('kpxzcc-this').siblings().removeClass('kpxzcc-this');
            let p_user_id = $('#kpxzcc').find('.kpxzcc-this').attr('user-id'); 
            getUserCheckScores({'job_apply_id':job_apply_id,'p_user_id':p_user_id},function(res){
                if(res.code == 1){
                    $('#check-zs').text(res.data);
                }
            })
            if(lay_pid == 1){
                //申报理由
                get_job_apply_user_check({'job_apply_id':job_apply_id,'p_user_id':p_user_id});
            }else{
                //发展性项目
                get_job_scale_user_check({'scale_index':lay_id,'scale_id':scale_id,'job_apply_id':job_apply_id,'p_user_id':p_user_id});
            }
        })
        
               
    });
  
</script>
<script id="demo" type="text/html">
@{{#  layui.each(d.leader_array.all, function(k, v){ }}
      <span class="kpcc" user-id="@{{v.value}}" style="line-height: 38px;border: 1px solid #eee;padding: 10px;color:#0e90d2;cursor: pointer;" >@{{v.name}}</span> 
@{{#  }); }} 
@{{#  layui.each(d.members_array.all, function(k, v){ }}
      <span class="kpcc" user-id="@{{v.value}}" style="line-height: 38px;border: 1px solid #eee;padding: 10px;color:#0e90d2;cursor: pointer;" >@{{v.name}}</span> 
@{{#  }); }} 
</script>

<script id="tab2_1" type="text/html">
    <p class="tab2-1-title" >个人获奖情况<span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;">参考分数</span> </p>
    <div class="layui-collapse2" lay-filter="test">
    <form class="layui-form" action="" lay-filter="formTest3">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <!-- <button data="@{{JSON.stringify(v)}}" type="button" style="float:right;margin-top: 10px;margin-left: 20px;" class="layui-btn layui-btn-normal layui-btn-xs add-data">新增</button> -->
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>创建人</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td>@{{v2.nickname}}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </form>
    </div>
</script>
<script id="tab2_2" type="text/html">
    <form class="layui-form" action="" lay-filter="formTest3">
    <p class="tab2-1-title" >课题  <span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;" >参考分数</span> </p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[2], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <!-- <button data="@{{JSON.stringify(v)}}" type="button" style="float:right;margin-top: 10px;margin-left: 20px;" class="layui-btn layui-btn-normal layui-btn-xs add-data">新增</button> -->
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>课题名称</th>
                            <th>类别</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>主持人</th>
                            <th>课题阶段</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>                          
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_SUBJECT_RESEARCH_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_SUBJECT_STUDY_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.compere.length>0){ }} @{{v2.compere[0].user.nickname}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.stage == '1'){ }} 申报阶段 @{{# }else if(v2.stage == '2'){ }} 立项阶段 @{{# }else if(v2.stage == '3'){ }} 中期阶段 @{{# }else if(v2.stage == '4'){ }} 结项阶段 @{{# }else{ }} @{{# } }}</td>
                            <td>通过</td>                       
                            <td><span class="tab-see see-data"  scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span> </td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
    <br>
    <p class="tab2-1-title" >发表或交流 <span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;" >参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[3], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <!-- <button data="@{{JSON.stringify(v)}}" type="button" style="float:right;margin-top: 10px;margin-left: 20px;" class="layui-btn layui-btn-normal layui-btn-xs add-data">新增</button> -->
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="15%">
                            <col width="15%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>名称</th>
                            <th>类型</th>
                            <th>发表日期</th>
                            <th>类别</th>
                            <th>级别</th>
                            <th>创建人</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.publish_type_set[0]['selectValue'] }}</td>
                            
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_PAPER_PUBLISH_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_PUBLISH_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.level_array.length > 0 ? v2.level_array[0].selectValue : '-' }}</td>
                            <td>@{{v2.creator ? v2.creator.nickname : '-' }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" lx="@{{v2.publish_type_set[0]['optionId']}}" scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
    </form>
</script>
<script id="tab2_4" type="text/html">
    <p class="tab2-1-title" >兼职工作 <span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;" >参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    <form class="layui-form" action="" lay-filter="formTest3">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
            @{{# if(v.job_apply_details !== null && v.job_apply_details.modules_id == '23'){ }}
                    @{{# if(v.apply_data.length>0){ }}
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="25%">
                                <col width="25%">
                                <col width="25%">                        
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>职务</th>
                                <th>开始时间</th>
                                <th>结束时间</th>
                              
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                                <tr>
                                <td>@{{v2.term.title}}</td>
                                <td>@{{# if(v2.title_set.length>0){ }} @{{v2.title_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{v2.begin_date}}</td>
                                <td>@{{v2.end_date}}</td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }} 
                @{{# }else{ }}
                    @{{# if(v.apply_data.length>0){ }}
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="15%">
                                <col width="15%">
                                <col width="15%">
                                <col width="15%">
                                <col width="15%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>班级名称</th>
                                <th>正副情况</th>
                                <th>开始日期</th>
                                <th>结束日期</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                                <tr>
                                <td>@{{v2.term.title}}</td>
                                <td>@{{# if(v2.grade_set.length>0 && v2.class_set.length>0){ }} @{{v2.class_set[0].selectValue}}@{{v2.grade_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{# if(v2.chief_set.length>0){ }} @{{v2.chief_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{v2.begin_date}}</td>
                                <td>@{{v2.end_date}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span></td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }} 
                @{{# } }}             
            </p>
            </div>
        </div>
    @{{#  }); }}
    </form>
    </div>
</script>
<script id="tab2_5" type="text/html">
    <form class="layui-form" action="" lay-filter="formTest3">
    <p class="tab2-1-title" >公开教学 <span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[5], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="12%">
                            <col width="15%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>课题名称</th>
                            <th>日期</th>
                            <th>学科</th>
                            <th>年级</th>
                            <th>班级</th>
                            <th>创建人</th>
                            <th>创建时间</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_CLASS_MEETING_TABLE'){ }} @{{v2.date ? v2.date : v2.begin_date}} @{{# }else{ }} @{{v2.begin_date}}  @{{# } }}</td>
                            <td>@{{# if(v2.course_set.length>0){ }} @{{v2.course_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.class_item_set.length>0){ }} @{{v2.class_item_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.creator){ }} @{{v2.creator.nickname}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.created_at}}</td>
                            <td><span class="tab-see see-data" scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span> </td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
    <br>
    <p class="tab2-1-title" >经验交流</p>
    <div class="layui-collapse2" lay-filter="test">
    @{{#  layui.each(d[10], function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <!-- <button data="@{{JSON.stringify(v)}}" type="button" style="float:right;margin-top: 10px;margin-left: 20px;" class="layui-btn layui-btn-normal layui-btn-xs add-data">新增</button> -->
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="12%">
                            <col width="15%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>主题名称</th>
                            <th>类别</th>
                            <th>日期</th>
                            <th>级别</th>
                            <th>学科</th>
                            <th>接待课</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }} @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{# if(v2.activity_category == 'EW_EXCHANGE_EXPERIENCE_TABLE'){ }} 教育 @{{# }else if(v2.activity_category == 'TEARRESEARCH_EXCHANGE_TABLE'){ }} 教学 @{{# }else{ }}  @{{# } }}</td>
                            
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.course_set.length>0){ }} @{{v2.course_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.reception_class_set.length>0){ }} @{{v2.reception_class_set[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" scale-index="@{{v.job_apply_details.scale_index}}" jad-id="@{{v2.id}}"  >查看</span></td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </div>
    </form>
</script>
<script id="tab2_6" type="text/html">
    <p class="tab2-1-title" >辅导学生获奖 <span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    <form class="layui-form" action="" lay-filter="formTest3">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span> </td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </form>
    </div>
</script>
<script id="tab2_7" type="text/html">
    <p class="tab2-1-title" >带教情况<span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    <form class="layui-form" action="" lay-filter="formTest3">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(v.apply_data.length>0){ }}
                    <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>活动名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>带教教师</th>
                            <th>所在学校</th>
                            <th>级别</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{v2.teacher_name}}</td>
                            <td>@{{v2.school_name}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span> </td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </form>
    </div>
</script>
<script id="tab2_8" type="text/html">
    <p class="tab2-1-title" >其他专业发展项目<span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    <form class="layui-form" action="" lay-filter="formTest3">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
            @{{# if(v.apply_data.length>0){ }}
            <table class="layui-table" lay-even="" lay-skin="nob">
                        <colgroup>
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col width="10%">
                            <col>
                        </colgroup>
                        <thead>
                            <tr>
                            <th>学年学期</th>
                            <th>类型</th>
                            <th>名称</th>
                            <th>开始日期</th>
                            <th>结束日期</th>
                            <th>级别</th>
                            <th>等级</th>
                            <th>状态</th>
                            <th>操作</th>
                            </tr> 
                        </thead>
                        <tbody style="color:#797979" >
                            @{{#  layui.each(v.apply_data, function(k2, v2){ }}
                            <tr>
                            <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                            <td>@{{# if(v2.category_array.length>0){ }} @{{v2.category_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{v2.name}}</td>
                            <td>@{{v2.begin_date}}</td>
                            <td>@{{v2.end_date}}</td>
                            <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.grade_array.length>0){ }} @{{v2.grade_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                            <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                            <td><span class="tab-see see-data" jad-id="@{{v2.id}}"  >查看</span> </td>
                            </tr> 
                            @{{#  }); }}                       
                        </tbody>
                    </table>  
                @{{# } }}                
            </p>
            </div>
        </div>
    @{{#  }); }}
    </form>
    </div>
</script>
<script id="tab2_9" type="text/html">
    <p class="tab2-1-title" >参与学校重要工作，并作出贡献<span style="float:right;">考核小组评分&nbsp;&nbsp;</span><span style="float:right;margin-right: 30px;">参考分数</span></p>
    <div class="layui-collapse2" lay-filter="test">
    <form class="layui-form" action="" lay-filter="formTest3">
    @{{#  layui.each(d, function(k, v){ }}
        <div class="layui-colla-item2">
            <h2 class="layui-colla-title">@{{v.title}} 
                <input type="text" data="@{{JSON.stringify(v)}}" name="score2[]" value="@{{# if(v.job_apply_scores !== null){ }}@{{v.job_apply_scores.scores}}@{{# } }}" class="layui-input mark_score" onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" style="float:right;margin-top: 2px;margin-left: 40px;width:80px;" >
                <input type="text" name="score2s[]" style="display:none" value="@{{# if(v.job_apply_scores !== null){ }}@{{JSON.stringify(v.job_apply_scores)}}@{{# } }}">
                <span style="float:right" >@{{# if(v.max_score>0){ }} @{{v.min_score}} - @{{v.max_score}}分 @{{# }else{ }} @{{v.min_score}}分 @{{# } }} </span>                
            </h2>
            <div class="layui-colla-content2 layui-show">
            <p>
                @{{# if(!$.isEmptyObject(v.apply_data)){ }}
                    <!--带教情况-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_TEACHING_SITUATION_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;" >带教情况</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>活动名称</th>
                                <th>开始日期</th>
                                <th>结束日期</th>
                                <th>带教教师</th>
                                <th>所在学校</th>
                                <th>级别</th>
                                <th>状态</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_TEACHING_SITUATION_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.begin_date}}</td>
                                <td>@{{v2.end_date}}</td>
                                <td>@{{v2.teacher_name}}</td>
                                <td>@{{v2.school_name}}</td>
                                <td>@{{# if(v2.level_array.length>0){ }} @{{v2.level_array[0].selectValue}} @{{# }else{ }}  @{{# } }}</td>
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="1" >查看</span> </td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }}
                    <!--校内工作-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_IN_SCHOOL_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;">校内工作</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="20%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>学校重要工作</th>
                                <th>日期</th>
                                <th>主持人</th>
                                <th>参与人</th>
                                <th>状态</th>
                                <th>创建人</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_IN_SCHOOL_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.date}}</td>
                                <td>@{{v2.compere}}</td>
                                <td>@{{v2.participants.length}}</td>                             
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td>@{{v2.nickname}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="2" >查看</span> </td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }}
                    <!--校外工作-->
                    @{{# if( typeof(v.apply_data.IMPORTANTWORK_OUT_SCHOOL_TABLE) != "undefined" ){ }}
                        <p style="color: #b9b5b5;">校外工作</p>
                        <table class="layui-table" lay-even="" lay-skin="nob">
                            <colgroup>
                                <col width="10%">
                                <col width="20%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="10%">
                                <col width="20%">
                                <col>
                            </colgroup>
                            <thead>
                                <tr>
                                <th>学年学期</th>
                                <th>工作内容摘要</th>
                                <th>日期</th>
                                <th>主持人</th>
                                <th>参与人</th>
                                <th>状态</th>
                                <th>创建人</th>
                                <th>操作</th>
                                </tr> 
                            </thead>
                            <tbody style="color:#797979" >
                                @{{#  layui.each(v.apply_data.IMPORTANTWORK_OUT_SCHOOL_TABLE, function(k2, v2){ }}
                                <tr>
                                <td>@{{# if(v2.data_version_name === null){ }}  @{{v2.term.title}} @{{# }else{ }} @{{v2.data_version_name}} @{{# } }}</td>
                                <td>@{{v2.name}}</td>
                                <td>@{{v2.date}}</td>
                                <td>@{{v2.compere}}</td>
                                <td>@{{v2.participants.length}}</td>                             
                                <td>@{{# if(v2.status == 'FILL_IN'){ }} 未提交 @{{# }else if(v2.status == 'REVIEW'){ }} 待审核 @{{# }else if(v2.status == 'REVIEW_FAIL'){ }} 已驳回 @{{# }else if(v2.status == 'PASS'){ }} 审核通过 @{{# }else{ }} @{{# } }}</td>
                                <td>@{{v2.nickname}}</td>
                                <td><span class="tab-see see-data" jad-id="@{{v2.id}}" type="3" >查看</span> </td>
                                </tr> 
                                @{{#  }); }}                       
                            </tbody>
                        </table>  
                    @{{# } }}

                @{{# } }}              
            </p>
            </div>
        </div>
    @{{#  }); }}
    </form>
    </div>
</script>
@endpush

@section('content')
<style>
    .opt-panel{padding: 20px;}
    .panel-title h3{font-weight: 800;margin-bottom: 20px;}
    #add-form{padding: 20px 5px;}
    .opt-area{display: flex;flex-direction: row-reverse;padding: 10px 20px;margin-bottom: 20px;}
    .opt-area button{margin-left: 10px;}
    .layui-colla-content{padding: 10px 15px !important;}
    .tab-see{color: #2d8cf0;cursor: pointer;}
    .layui-table[lay-even] tr:nth-child(2n) {background-color: #ffffff !important;}
    .layui-colla-title{background-color: #fff;}
    .layui-collapse2{border:1px #eee solid;padding-top: 10px;}
    .layui-colla-content2{padding: 5px 15px !important;}
    .tab2-1-title{
        background-color: #fafafa;
        padding: 10px;
        border-top: 1px #eee solid;
        border-left: 1px #eee solid;
        border-right: 1px #eee solid;
    }
    #textarea{
        overflow-y: hidden;
        height: 310px;
        border: 1px #eee solid;
        border-radius: 4px;
        padding: 20px;
    }
    .kpxzcc-this{background: #0e90d2;color: #fff !important;}
</style>

<div class="layui-row">
    <div class="layui-panel opt-panel">
        <div class="panel-title">
            <h3>基础信息</h3>
        </div>
        <form class="layui-form" action="" lay-filter="formTest">
            <input type="text" name="id" style="display:none" value="" >
            <input type="text" name="job_id" style="display:none" value="" >
            <input type="text" name="data_version_id" style="display:none" value="" >
            <input type="text" name="old_level" style="display:none" value="" >
            <input type="text" name="apply_level" style="display:none" value="" >
            <input type="text" name="user_id" style="display:none" value="" >
            <input type="text" name="education" style="display:none" value="" >
            <input type="text" name="education_name" style="display:none" value="" >
            <input type="text" name="teaching_age" style="display:none" value="" >
            <input type="text" name="engage_age" style="display:none" value="" >
            <div class="layui-row" >
                <div class="layui-form-item" >
                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">学年学期：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="data_version_name" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">教师姓名：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="name" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px" >参加教育工作时间：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="join_job_date" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item" >
                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">原岗位等级：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="old_level_name" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">原岗位聘任日期：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="engage_date" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px" >申报岗位：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="apply_level_name" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

                <div class="layui-form-item" >
                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">任教学科：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="subject" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline" style="width: 30%;">
                        <label class="layui-form-label" style="width:130px">总分：</label>
                        <div class="layui-input-inline" style="width: 59%;">
                        <input disabled type="text" name="zf" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>

            </div>
            
            
        </form>
    </div>   
</div>

<div class="layui-row" style="margin-top:10px;margin-bottom: 100px;">
    <div class="layui-panel opt-panel">
        <div class="panel-title">
            <h3>考核内容</h3>
        </div>

        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBriefTop">
            <ul class="layui-tab-title" id="tab-t">
                <li class="layui-this" lay-id="1">最终认定</li>
                <li lay-id="2">考核小组</li>
            </ul>
            <div class="layui-tab-content">

                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <!--考核小组成员-->
                    <div class="khxzcc-div" style="display:none;" >
                        <form class="layui-form" action="" >
                            <div class="layuik-form-item ">
                                <div class="layuik-inline">
                                    <label class="layuik-form-label">考核小组成员：</label>
                                    <div class="layuik-input-inline" style="width: 70%;">
                                        <div id="kpxzcc"></div>
                                    </div>
                                    <div class="layuik-input-inline" style="width: 20%;text-align: center;line-height: 38px;">
                                        个人考核总分：<span id="check-zs" style="font-size: 18px;font-weight: bold;" ></span> 分
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>

                    <ul class="layui-tab-title" id="tab-1">
                        <li class="layui-this" lay-id="1">申报理由</li>
                        <li lay-id="2">发展性项目</li>
                    </ul>
                    <div class="layui-tab-content">
                    
                        <div class="layui-tab-item layui-show">
                            <form class="layui-form" action="" lay-filter="formTest2">
                                <div>
                                <div id="textarea" ></div>

                                    <div>
                                    <table class="layui-table" lay-skin="line">
                                        <colgroup>
                                            <col width="20%">
                                            <col width="20%">
                                            <col width="40%">
                                            <col width="20%">
                                        </colgroup>
                                        <thead>
                                            <tr>
                                            <th>基础性项目</th>
                                            <th></th>
                                            <th>情况说明</th>
                                            <th>考核小组评分</th>
                                            </tr> 
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td>学历水平</td>
                                                <td id="xlsp" ></td>
                                                <td><input disabled type="text" name="comment[1]" class="layui-input" value=""></td>
                                                <td><input onkeyup="value=value.replace(/[^\d.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3')" type="text" name="scores[1]"  class="layui-input mark_score1" value="" ></td>
                                            </tr>
                                            <tr>
                                                <td>“十三五”360培训</td>
                                                <td><select disabled name="training" lay-filter="training" ><option value="" >请选择</option><option value="1" >完成</option><option value="2" >未完成</option></select></td>
                                                <td><input disabled type="text" name="comment[2]" class="layui-input comment2" value=""></td>
                                                <td><input  type="text" name="scores[2]"  class="layui-input scores2 mark_score1" value="" ></td>
                                            </tr>
                                            <tr>
                                                <td>教龄</td>
                                                <td id="jl" ></td>
                                                <td><input disabled type="text" name="comment[3]" class="layui-input" value=""></td>
                                                <td><input  type="text" name="scores[3]"  class="layui-input mark_score1" value="" ></td>
                                            </tr>
                                            <tr>
                                                <td>职称聘任年限</td>
                                                <td id="prnx" ></td>
                                                <td><input disabled type="text" name="comment[4]" class="layui-input" value=""></td>
                                                <td><input  type="text" name="scores[4]"  class="layui-input mark_score1" value="" ></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    </div>

                                </div>
                            </form>
                        </div>
                
                        <div class="layui-tab-item">
                            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief2">
                                <ul class="layui-tab-title" id="tab-2">
                                    <li class="layui-this" lay-id="1">获奖情况</li>
                                    <li lay-id="2">教科研</li>
                                    <li lay-id="4">兼职工作</li>
                                    <li lay-id="5">公开教学</li>
                                    <li lay-id="6">辅导学生获奖</li>
                                    <li lay-id="7">带教情况</li>
                                    <li lay-id="8">其他发展项目</li>
                                    <li lay-id="9">重要工作贡献</li>
                                </ul>
                                <div class="layui-tab-content">
                                
                                    <div class="layui-tab-item layui-show" id="view-tab2-1">                               
                                    </div>
                                    <div class="layui-tab-item" id="view-tab2-2">
                                    </div>
                                    <div class="layui-tab-item" id="view-tab2-4">
                                    </div>
                                    <div class="layui-tab-item" id="view-tab2-5">
                                    </div>
                                    <div class="layui-tab-item" id="view-tab2-6">
                                    </div>
                                    <div class="layui-tab-item" id="view-tab2-7">
                                    </div>
                                    <div class="layui-tab-item" id="view-tab2-8">
                                    </div>
                                    <div class="layui-tab-item" id="view-tab2-9">
                                    </div>
                                
                                </div>
                            </div>
                        </div>
                        
                    </div>           
                </div>

            </div>
        </div>

        

        <div class="layui-row">
            <div class="opt-area">
                <a href="javascript:history.go(-1);" ><button class="layui-btn layui-btn-primary" type="button">返回</button></a>
            </div> 
        </div>
    </div>
</div>
  
@endsection